home *** CD-ROM | disk | FTP | other *** search
/ PC Users 1998 March / Pc Users extra 6.iso / pshare95 / prog / pvie / pview.exe / data.1 / pvdate2.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-14  |  6.8 KB  |  376 lines

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2.  
  3. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  4. //  Microsoft Visual C++, your modifications will be overwritten.
  5.  
  6.  
  7. #include "stdafx.h"
  8. #include "pvdate2.h"
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. #include "font.h"
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CPVDate2
  15.  
  16. IMPLEMENT_DYNCREATE(CPVDate2, CWnd)
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CPVDate2 properties
  20.  
  21. COleFont CPVDate2::GetFont()
  22. {
  23.     LPDISPATCH pDispatch;
  24.     GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
  25.     return COleFont(pDispatch);
  26. }
  27.  
  28. void CPVDate2::SetFont(LPDISPATCH propVal)
  29. {
  30.     SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
  31. }
  32.  
  33. OLE_COLOR CPVDate2::GetBackColor()
  34. {
  35.     OLE_COLOR result;
  36.     GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
  37.     return result;
  38. }
  39.  
  40. void CPVDate2::SetBackColor(OLE_COLOR propVal)
  41. {
  42.     SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
  43. }
  44.  
  45. OLE_COLOR CPVDate2::GetForeColor()
  46. {
  47.     OLE_COLOR result;
  48.     GetProperty(DISPID_FORECOLOR, VT_I4, (void*)&result);
  49.     return result;
  50. }
  51.  
  52. void CPVDate2::SetForeColor(OLE_COLOR propVal)
  53. {
  54.     SetProperty(DISPID_FORECOLOR, VT_I4, propVal);
  55. }
  56.  
  57. short CPVDate2::GetAlignment()
  58. {
  59.     short result;
  60.     GetProperty(0x1, VT_I2, (void*)&result);
  61.     return result;
  62. }
  63.  
  64. void CPVDate2::SetAlignment(short propVal)
  65. {
  66.     SetProperty(0x1, VT_I2, propVal);
  67. }
  68.  
  69. short CPVDate2::GetDisplayFormat()
  70. {
  71.     short result;
  72.     GetProperty(0x2, VT_I2, (void*)&result);
  73.     return result;
  74. }
  75.  
  76. void CPVDate2::SetDisplayFormat(short propVal)
  77. {
  78.     SetProperty(0x2, VT_I2, propVal);
  79. }
  80.  
  81. BOOL CPVDate2::GetHighlightInverted()
  82. {
  83.     BOOL result;
  84.     GetProperty(0x3, VT_BOOL, (void*)&result);
  85.     return result;
  86. }
  87.  
  88. void CPVDate2::SetHighlightInverted(BOOL propVal)
  89. {
  90.     SetProperty(0x3, VT_BOOL, propVal);
  91. }
  92.  
  93. unsigned long CPVDate2::GetHighlightColor()
  94. {
  95.     unsigned long result;
  96.     GetProperty(0x4, VT_I4, (void*)&result);
  97.     return result;
  98. }
  99.  
  100. void CPVDate2::SetHighlightColor(unsigned long propVal)
  101. {
  102.     SetProperty(0x4, VT_I4, propVal);
  103. }
  104.  
  105. DATE CPVDate2::GetValue()
  106. {
  107.     DATE result;
  108.     GetProperty(0xf, VT_DATE, (void*)&result);
  109.     return result;
  110. }
  111.  
  112. void CPVDate2::SetValue(DATE propVal)
  113. {
  114.     SetProperty(0xf, VT_DATE, propVal);
  115. }
  116.  
  117. DATE CPVDate2::Get_Value()
  118. {
  119.     DATE result;
  120.     GetProperty(0x0, VT_DATE, (void*)&result);
  121.     return result;
  122. }
  123.  
  124. void CPVDate2::Set_Value(DATE propVal)
  125. {
  126.     SetProperty(0x0, VT_DATE, propVal);
  127. }
  128.  
  129. short CPVDate2::GetDay()
  130. {
  131.     short result;
  132.     GetProperty(0x10, VT_I2, (void*)&result);
  133.     return result;
  134. }
  135.  
  136. void CPVDate2::SetDay(short propVal)
  137. {
  138.     SetProperty(0x10, VT_I2, propVal);
  139. }
  140.  
  141. short CPVDate2::GetMonth()
  142. {
  143.     short result;
  144.     GetProperty(0x11, VT_I2, (void*)&result);
  145.     return result;
  146. }
  147.  
  148. void CPVDate2::SetMonth(short propVal)
  149. {
  150.     SetProperty(0x11, VT_I2, propVal);
  151. }
  152.  
  153. short CPVDate2::GetYear()
  154. {
  155.     short result;
  156.     GetProperty(0x12, VT_I2, (void*)&result);
  157.     return result;
  158. }
  159.  
  160. void CPVDate2::SetYear(short propVal)
  161. {
  162.     SetProperty(0x12, VT_I2, propVal);
  163. }
  164.  
  165. short CPVDate2::GetDateFormat()
  166. {
  167.     short result;
  168.     GetProperty(0x5, VT_I2, (void*)&result);
  169.     return result;
  170. }
  171.  
  172. void CPVDate2::SetDateFormat(short propVal)
  173. {
  174.     SetProperty(0x5, VT_I2, propVal);
  175. }
  176.  
  177. CString CPVDate2::GetSeparator()
  178. {
  179.     CString result;
  180.     GetProperty(0x6, VT_BSTR, (void*)&result);
  181.     return result;
  182. }
  183.  
  184. void CPVDate2::SetSeparator(LPCTSTR propVal)
  185. {
  186.     SetProperty(0x6, VT_BSTR, propVal);
  187. }
  188.  
  189. BOOL CPVDate2::GetEnabled()
  190. {
  191.     BOOL result;
  192.     GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
  193.     return result;
  194. }
  195.  
  196. void CPVDate2::SetEnabled(BOOL propVal)
  197. {
  198.     SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
  199. }
  200.  
  201. unsigned long CPVDate2::GetDisabledColor()
  202. {
  203.     unsigned long result;
  204.     GetProperty(0x7, VT_I4, (void*)&result);
  205.     return result;
  206. }
  207.  
  208. void CPVDate2::SetDisabledColor(unsigned long propVal)
  209. {
  210.     SetProperty(0x7, VT_I4, propVal);
  211. }
  212.  
  213. BOOL CPVDate2::GetTimeStore()
  214. {
  215.     BOOL result;
  216.     GetProperty(0x8, VT_BOOL, (void*)&result);
  217.     return result;
  218. }
  219.  
  220. void CPVDate2::SetTimeStore(BOOL propVal)
  221. {
  222.     SetProperty(0x8, VT_BOOL, propVal);
  223. }
  224.  
  225. BOOL CPVDate2::GetModified()
  226. {
  227.     BOOL result;
  228.     GetProperty(0x9, VT_BOOL, (void*)&result);
  229.     return result;
  230. }
  231.  
  232. void CPVDate2::SetModified(BOOL propVal)
  233. {
  234.     SetProperty(0x9, VT_BOOL, propVal);
  235. }
  236.  
  237. CString CPVDate2::GetDateString()
  238. {
  239.     CString result;
  240.     GetProperty(0x13, VT_BSTR, (void*)&result);
  241.     return result;
  242. }
  243.  
  244. void CPVDate2::SetDateString(LPCTSTR propVal)
  245. {
  246.     SetProperty(0x13, VT_BSTR, propVal);
  247. }
  248.  
  249. BOOL CPVDate2::GetSeparatorDefault()
  250. {
  251.     BOOL result;
  252.     GetProperty(0xa, VT_BOOL, (void*)&result);
  253.     return result;
  254. }
  255.  
  256. void CPVDate2::SetSeparatorDefault(BOOL propVal)
  257. {
  258.     SetProperty(0xa, VT_BOOL, propVal);
  259. }
  260.  
  261. short CPVDate2::GetBorder()
  262. {
  263.     short result;
  264.     GetProperty(0xb, VT_I2, (void*)&result);
  265.     return result;
  266. }
  267.  
  268. void CPVDate2::SetBorder(short propVal)
  269. {
  270.     SetProperty(0xb, VT_I2, propVal);
  271. }
  272.  
  273. short CPVDate2::GetEditMode()
  274. {
  275.     short result;
  276.     GetProperty(0xc, VT_I2, (void*)&result);
  277.     return result;
  278. }
  279.  
  280. void CPVDate2::SetEditMode(short propVal)
  281. {
  282.     SetProperty(0xc, VT_I2, propVal);
  283. }
  284.  
  285. BOOL CPVDate2::GetEditModeChange()
  286. {
  287.     BOOL result;
  288.     GetProperty(0xd, VT_BOOL, (void*)&result);
  289.     return result;
  290. }
  291.  
  292. void CPVDate2::SetEditModeChange(BOOL propVal)
  293. {
  294.     SetProperty(0xd, VT_BOOL, propVal);
  295. }
  296.  
  297. short CPVDate2::GetCalendarFormat()
  298. {
  299.     short result;
  300.     GetProperty(0x14, VT_I2, (void*)&result);
  301.     return result;
  302. }
  303.  
  304. void CPVDate2::SetCalendarFormat(short propVal)
  305. {
  306.     SetProperty(0x14, VT_I2, propVal);
  307. }
  308.  
  309. short CPVDate2::GetStatus()
  310. {
  311.     short result;
  312.     GetProperty(0x15, VT_I2, (void*)&result);
  313.     return result;
  314. }
  315.  
  316. void CPVDate2::SetStatus(short propVal)
  317. {
  318.     SetProperty(0x15, VT_I2, propVal);
  319. }
  320.  
  321. short CPVDate2::GetDayOfWeek()
  322. {
  323.     short result;
  324.     GetProperty(0x16, VT_I2, (void*)&result);
  325.     return result;
  326. }
  327.  
  328. void CPVDate2::SetDayOfWeek(short propVal)
  329. {
  330.     SetProperty(0x16, VT_I2, propVal);
  331. }
  332.  
  333. short CPVDate2::GetDayOfYear()
  334. {
  335.     short result;
  336.     GetProperty(0x17, VT_I2, (void*)&result);
  337.     return result;
  338. }
  339.  
  340. void CPVDate2::SetDayOfYear(short propVal)
  341. {
  342.     SetProperty(0x17, VT_I2, propVal);
  343. }
  344.  
  345. short CPVDate2::GetWeekOfYear()
  346. {
  347.     short result;
  348.     GetProperty(0x18, VT_I2, (void*)&result);
  349.     return result;
  350. }
  351.  
  352. void CPVDate2::SetWeekOfYear(short propVal)
  353. {
  354.     SetProperty(0x18, VT_I2, propVal);
  355. }
  356.  
  357. short CPVDate2::GetValueReset()
  358. {
  359.     short result;
  360.     GetProperty(0xe, VT_I2, (void*)&result);
  361.     return result;
  362. }
  363.  
  364. void CPVDate2::SetValueReset(short propVal)
  365. {
  366.     SetProperty(0xe, VT_I2, propVal);
  367. }
  368.  
  369. /////////////////////////////////////////////////////////////////////////////
  370. // CPVDate2 operations
  371.  
  372. void CPVDate2::AboutBox()
  373. {
  374.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  375. }
  376.